
public class Datenbanktest {
	
	DatabaseAlt db;

	public Datenbanktest() {
		//db = new Database("jdbc:mysql://localhost","TASadmin","123");
		//db = new Database("jdbc:mysql:localhost", "TASadmin", "123");
		//db = new DatabaseAlt("jdbc:hsqldb:file:src/Datenbank/hsqldb-2.2.9/hsqldb/data/DB", "thm", "");
		    String hostname = "192.168.1.7"; 
	        String port = "3306"; 
	        String dbname = "takeaseat"; 
	        String user = "THMUser"; 
	        String password = "abc"; 
		    String url = "jdbc:mysql://"+hostname+":"+port+"/"+dbname; 
		    db = new DatabaseAlt(url, user, password); 
		db.selectAllFrom(2);
		
		System.out.println("Abgeschlossen");
	}

}


